﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SDT.Model;
using SDT.Mobile.Models;

namespace SDT.Mobile.Controllers
{
    public class SuccessController : Controller
    {
        SDTDataContext data = new SDTDataContext();

        public ActionResult Ok()
        {
            SuccessModel ss = new SuccessModel();
            ss.ProductTypes = data.ProductTypes.ToList();
            ss.ProductCategories = data.ProductCategories.ToList();
            ss.Products = data.Products.ToList();
            ss.ArticleCategories = data.ArticleCategories.ToList();
            ss.Articles = data.Articles.ToList();
            return View(ss);
        }

    }
}
